home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
src
/
haeberli
/
include
/
hideline.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-01
|
2KB
|
64 lines
/*
* Copyright 1991, 1992, 1993, 1994, Silicon Graphics, Inc.
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
* the contents of this file may not be disclosed to third parties, copied or
* duplicated in any form, in whole or in part, without the prior written
* permission of Silicon Graphics, Inc.
*
* RESTRICTED RIGHTS LEGEND:
* Use, duplication or disclosure by the Government is subject to restrictions
* as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
* and Computer Software clause at DFARS 252.227-7013, and/or in similar or
* successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
* rights reserved under the Copyright Laws of the United States.
*/
#ifndef HIDELINEDEF
#define HIDELINEDEF
#define ASPECT (3.0/2.0)
#ifdef USEDOUBLES
#define TOLERANCE (0.0000001)
#define VECT dvect
#define FLOAT double
#define TRINORMAL(a,b,c,d,e) dtrinormal(a,b,c,d,e)
#define FLERP(a,b,c) dlerp(a,b,c)
#define VLERP(a,b,c,d) dvlerp(a,b,c,d)
#define VPLANE(a,b,c) dvplane(a,b,c)
#define V2F(a) v2d((double *)(a))
#define VDOT(a,b) dvdot(a,b)
#else
#define TOLERANCE (0.000001)
#define VECT vect
#define FLOAT float
#define TRINORMAL(a,b,c,d,e) trinormal(a,b,c,d,e)
#define FLERP(a,b,c) flerp(a,b,c)
#define VLERP(a,b,c,d) vlerp(a,b,c,d)
#define VPLANE(a,b,c) vplane(a,b,c)
#define V2F(a) v2f((float *)(a))
#define VDOT(a,b) vdot(a,b)
#define VSUB(a,b,c) vsub(a,b,c)
#define VNORMAL(a) vnormal(a)
#endif
typedef struct tile { /* first 4 lines must be identical to edge struct */
struct tile *next;
FLOAT xmin, xmax;
FLOAT ymin, ymax;
FLOAT zmin, zmax;
VECT plane;
VECT edgeeq[3];
VECT pos[3];
long col[3];
int backfacing;
int transparent;
} tile;
#endif